|
Author |
Thread Statistics | Show CCP posts - 184 post(s) |
Kali Izia
GoomWaffe Goonswarm Federation
21
|
Posted - 2014.09.17 14:04:00 -
[1] - Quote
Cor'len wrote:So on the matter of PI:
Any chance of releasing the code that generates pin names? I expect them to be derived from the pinID, and hopefully not run through too many iterations of CCP's magical randomizer. I'd like to show alerts for various things, and it'd be convenient to be able to use the same naming scheme as is used ingame.
I've only tested with one pin because I'm lazy but this should work:
- The name is calculated using the string '123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
- Calculate 5 indexes using pinID / len^i % len, where len is the length of the string above, and i is 0 to 4
Rough PHP code:
Quote:function getPinName($pinID) { $baseStr = '123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $baseStrLen = strlen($baseStr) - 1;
$pinName = ''; for ($i = 0; $i < 5; $i++) { $pinName .= $baseStr[$pinID / pow($baseStrLen, $i) % $baseStrLen]; }
return preg_replace('/^(.{2})(.{3})$/', '$1-$2', $pinName); }
|
Kali Izia
GoomWaffe Goonswarm Federation
23
|
Posted - 2014.11.05 00:56:03 -
[2] - Quote
Feyd Rautha Harkonnen wrote:Callback URL *This is the only URL we will redirect to after authentication. We strongly recommend using HTTPS protocol."
So..I am confuse. How can an iPhone or thick-client app with variable IP address (based on user), make an auth request for an application thats been registered, when the callback URL (endpoint) is hardwired in server-side definition of the app?
Is there a non web-based example of using the auth CREST API available, to see how the lifecycle would work for a thick client app? You can register an URL scheme and then set the callback to yourapp://whatever
|
Kali Izia
GoomWaffe Goonswarm Federation
26
|
Posted - 2014.12.12 07:05:52 -
[3] - Quote
Drailen wrote:I've seen several posts indicating that the CREST root should provide the URIs of all the available endpoints but I can't seem to see the killmail endpoint listed anywhere in the root.
Should it be in there?
It's not listed in the root because it's not something you would access directly. CREST links to killmails when you follow wars from the root (e.g. https://public-crest.eveonline.com/wars/398587/killmails/all/ is one that has kills). |
Kali Izia
GoomWaffe Goonswarm Federation
28
|
Posted - 2014.12.16 05:36:39 -
[4] - Quote
Aineko Macx wrote:Aineko Macx wrote:https://public-crest.eveonline.com/market/prices/ is not returning data for typeID=34396 (Self-Assembling Nanolattice). This is a thing. Can't calculate Confessor builds atm because of the missing data. That's not really an API issue since the data isn't in-game either. I can't recall how often the prices get updated but it just means that script hasn't run yet. |
Kali Izia
GoomWaffe Goonswarm Federation
28
|
Posted - 2014.12.16 08:38:18 -
[5] - Quote
Epitropy wrote:Is there documentation about the authentication process to access the publicData scope on auth'ed CREST? I'm looking for buy/sell orders. It seems to be different than the SSO protocol, as there wouldn't be a user login step. You still need to authenticate as a user. You more or less follow the normal SSO steps once (I posted the exact differences here), after that you can store the refresh token and won't have to log in again.
For a server-side app that will only use public data, you can just log in yourself once and store your own refresh token if you don't want to make users log in. The refresh token doesn't expire and will stay valid unless you revoke access.
Once you have the refresh token, for any future calls you'll only need to call /oauth/token to get an access token. And then you can access the CREST resources. |
Kali Izia
GoomWaffe Goonswarm Federation
30
|
Posted - 2015.01.17 23:01:32 -
[6] - Quote
The URLs are on https://developers.eveonline.com/resource/faq
Rate limits are per IP on public CREST. On authed CREST there are rate limits but they're high enough that you can pretend they don't exist (for market data only, you should still implement rate limiting for all other endpoints).
For burst rates, read up on the leaky bucket and token bucket algorithms. Your app can easily keep track of its own rate limits using either one of those. |
Kali Izia
GoomWaffe Goonswarm Federation
51
|
Posted - 2015.05.24 04:56:46 -
[7] - Quote
Quesa wrote:The CREST endpoint: http://public-crest.eveonline.com/market/prices Is that a universe wide average or is it for a specific region/station? Wiki states: Quote:Returns the list of trade-able types and their average market price, as shown in the inventory UI in the EVE client. Also includes an adjusted market price which is used in industry calculations. I'm assuming this means it's the same price as what we get when we hover over items in our hanger but where and how this data is calculated isn't clear to me. It's universe wide. If I recall correctly it's a 90 day moving average that gets updated every week or two. |
|
|
|